﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Adm.Master" Theme="Adm" AutoEventWireup="true" CodeBehind="ConsultaProfissionais.aspx.cs" Inherits="PROAD.admin.Consulta.ConsultaProfissionais" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludeHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="IncludeTitulo" runat="server">
    <h1>Lista de Profissionais Cadastrados</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="IncludeLink" runat="server">
    <h1><a href="/admin/Forms/FormProfissionais.aspx">Novo Profissional</a></h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="IncludeConteudo" runat="server">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        

<table width="100%">
            <tr>
                <td>
                Nome
                </td>
                <td>
                 Matrícula
                </td>
                <td>
                Tipo
                </td>
                <td>
                &nbsp;
                </td>
            </tr>
             <tr>
                <td>
                <asp:TextBox ID="txtNome" runat="server" Width="246px"></asp:TextBox>
                </td>
                <td>
                <asp:TextBox ID="txtCpf" runat="server" Width="119px" MaxLength="14"></asp:TextBox>
                </td>
                <td>
                
                <asp:DropDownList ID="ddlTipo" runat="server" Width="179px" DataValueField="CO_CATEGORIA_PROF" DataTextField="NO_CATEGORIA">
                 </asp:DropDownList>

                </td>
                 
                <td>
                    <asp:Button ID="btnPesquisar" runat="server" Text="Pesquisar" 
                        Width="110px" onclick="btnPesquisar_Click"/>
                    <asp:Button ID="btnLimpar" runat="server" Text="Limpar" 
                        onclick="btnLimpar_Click"/>
                </td>
             </tr>
             <tr>
              <td colspan="4"> &nbsp;</td>
             </tr>
             <tr>
              <td colspan="4"> 
                <%--Grid com resultados--%>
                  <asp:GridView ID="gridProf" runat="server" CellPadding="4" ForeColor="#333333" 
                      GridLines="None" SkinID="GridAdm" AutoGenerateColumns="false" 
                      onrowcommand="gridUs_RowCommand" 
                      EmptyDataText="<center>Não foram encontrados registros!</center>">
                      
                      <Columns>
                        <asp:TemplateField HeaderText="">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkStatus" runat="server" CommandName="Status"
                                    CommandArgument='<%#Eval("CO_PROFISSIONAL")%>' Visible="True">
                                    <img alt="Status" border="0" src="../../common/imagem_sis/imagem_sis/<%#Eval("NR_STATUS").ToString() == "0" ? "inativo.png" : "ativo.png"%>" />
                                </asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="13px" Width="40px" Font-Names="Verdana"/>
                            <ItemStyle Font-Size="10pt" HorizontalAlign="Center" />
                        </asp:TemplateField> 
                
                        <asp:BoundField DataField="NO_PROFISSIONAL" HeaderText="Nome">
                            <HeaderStyle Font-Size="13px" Font-Names="Verdana" HorizontalAlign="Left"/>
                            <ItemStyle Font-Size="10pt" HorizontalAlign="Left" />
                        </asp:BoundField>

                        <asp:BoundField DataField="DS_CPF" HeaderText="Matrícula">
                            <HeaderStyle Font-Size="13px" Font-Names="Verdana" HorizontalAlign="Left"/>
                            <ItemStyle Font-Size="10pt" HorizontalAlign="Left" />
                        </asp:BoundField>
                        
                        <asp:BoundField DataField="NO_CATEGORIA" HeaderText="Tipo">
                            <HeaderStyle Font-Size="13px" Font-Names="Verdana" HorizontalAlign="Left"/>
                            <ItemStyle Font-Size="10pt" HorizontalAlign="Left" />
                        </asp:BoundField>

                        <asp:BoundField DataField="DS_TELEFONE" HeaderText="Telefone">
                            <HeaderStyle Font-Size="13px" Font-Names="Verdana" HorizontalAlign="Left"/>
                            <ItemStyle Font-Size="10pt" HorizontalAlign="Left" />
                        </asp:BoundField>

                        <asp:TemplateField HeaderText="">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEditar" runat="server" CommandName="Editar"
                                    CommandArgument='<%#Eval("CO_PROFISSIONAL")%>' Visible="True">
                                    <img alt="Status" border="0" src="../../common/imagem_sis/imagem_sis/editar.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="13px" Width="40px" Font-Names="Verdana"/>
                            <ItemStyle Font-Size="10pt" HorizontalAlign="Center" />
                        </asp:TemplateField>
                                              
                      </Columns>
                                            
                  </asp:GridView>

              </td>
             </tr>
        </table>

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="IncludeRodape" runat="server">
</asp:Content>
